import { Component, Input } from '@angular/core';

@Component({
  selector: 'app-bpm-opinion',
  templateUrl: './bpm.opinion.component.html'
})
// 办理意见
// 各环节意见在一起，并能填写当前意见
export class BpmOpinionComponent {

  bs: any = null;
  @Input()
  get bpmServer() {
    return this.bs;
  }
  set bpmServer(value) {
    this.bs = value;
  }

  constructor() {
  }

  setOptcontent(text) {
    this.bs.info.tasks.forEach(c => {
      if (c.current === true) {
        c.edit.optcontent = text;
      }
    });
  }
}
